package com.huiqiao.lesson6.beanConstructor;

import com.huiqiao.lesson6.beanConfig.Component.UserDao;
import com.huiqiao.lesson6.beanConfig.Component.UserService;

public class BeanConStructorAtBeanClass {

    UserDao userDao;

    UserService userService;


    public BeanConStructorAtBeanClass() {
        System.out.println("无参构造器");
    }


    public BeanConStructorAtBeanClass(UserDao userDao) {
        System.out.println("一个参数构造器");
        this.userDao = userDao;
    }

    public BeanConStructorAtBeanClass(UserDao userDao, UserService userService) {
        System.out.println("两个参数构造器");
        this.userDao = userDao;
        this.userService = userService;
    }
}
